<?php
	echo "<div class = 'topline'>";
		if (isset(HTTPContext::$session['customer']))
		{
			echo Language::Get('Welcome').', ';
			$customerName = (!empty(HTTPContext::$session['customer']['firstName'])) ? HTTPContext::$session['customer']['firstName'] : HTTPContext::$session['customer']['email'];
			HtmlHelper::Link('/customers/profile/', $customerName);
			echo " | ";
			HtmlHelper::Link('/customers/logout/', Language::Get('Logout'), StringCaseType::Capitalize);
		}
		else 
		{
			XHTML::Form('/customers/login/');

//					    $this->helpers->htmlx->CheckboxRowSite3(' Remember my credentials on this computer', 'remember_me', 1);
//					    $this->helpers->htmlx->InputSubmitRowSite3('', 'Log In', "class = 'orange-box'");
			
				echo "<label style = 'font-weight: bold; '>Email: <label> ";
				XHTML::InputText('email', $this->request->post['email']);
				echo "<label style = 'font-weight: bold; margin-left: 10px; '>Password: </label> ";
				XHTML::InputText('password', $this->request->post['password']);
				XHTML::InputSubmit('log_in', Language::Get('Log In'), array('class' => 'orange-box', 'style' => 'display: inline; margin-left: 5px; '));
				echo "</form>";
//			HtmlHelper::Link('/customers/login/', Language::Get('Login'));
		}
	echo "</div>";
?>